﻿<phone:PhoneApplicationPage 
    x:Class="TripleTriad.Partita"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="Landscape"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="800"
    shell:SystemTray.IsVisible="False"
    BackKeyPress="PhoneApplicationPage_BackKeyPress">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="Fill" ImageSource="img/bg.jpg"/>
    	</Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Canvas Name="CanvasMazzo0" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="40,-468,0,0" d:LayoutOverrides="VerticalAlignment" Style="{StaticResource CanvasCard}">
                <Border Name="BorderMazzo0" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Mazzo0" Click="Mazzo_Click" Style="{StaticResource ButtonCard}" />
        	</Canvas>
            <Canvas Name="CanvasMazzo1" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="40,-397,0,0" d:LayoutOverrides="VerticalAlignment" Style="{StaticResource CanvasCard}">
                <Border Name="BorderMazzo1" BorderBrush="Black" Style="{StaticResource BorderCard}"/>
                <Button x:Name="Mazzo1" Click="Mazzo_Click" Style="{StaticResource ButtonCard}" />
            </Canvas>
            <Canvas Name="CanvasMazzo2" HorizontalAlignment="Left" Margin="40,-323,0,173" Style="{StaticResource CanvasCard}">
                <Border Name="BorderMazzo2" BorderBrush="Black" Style="{StaticResource BorderCard}"/>
                    <Button x:Name="Mazzo2" Click="Mazzo_Click" Style="{StaticResource ButtonCard}" d:LayoutOverrides="VerticalAlignment" />
            </Canvas>
            <Canvas Name="CanvasMazzo3" HorizontalAlignment="Left" Margin="40,-247,0,97" Style="{StaticResource CanvasCard}">
                <Border Name="BorderMazzo3" BorderBrush="Black" Style="{StaticResource BorderCard}"/>
                <Button x:Name="Mazzo3" VerticalAlignment="Bottom" Click="Mazzo_Click" Style="{StaticResource ButtonCard}" />
            </Canvas>
            <Canvas Name="CanvasMazzo4" Margin="40,-177,0,27" HorizontalAlignment="Left" d:LayoutOverrides="Width" Style="{StaticResource CanvasCard}">
                <Border Name="BorderMazzo4" BorderBrush="Black" Style="{StaticResource BorderCard}"/>
                <Button x:Name="Mazzo4" Click="Mazzo_Click" Style="{StaticResource ButtonCard}" />
            </Canvas>
            </Grid>
        <Canvas x:Name="GridContainer" Margin="222,8,128,22" Width="450" Height="450" >
        	<Canvas.Background>
        		<ImageBrush Stretch="UniformToFill" ImageSource="img/bgbattle.png"/>
        	</Canvas.Background>
            <Canvas Name="CanvasGriglia00" Style="{StaticResource CanvasCard}">
                <Border Name="BorderGriglia00" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Griglia00" Click="Griglia_Click" Style="{StaticResource ButtonCard}" />
        	</Canvas>
            <Canvas Name="CanvasGriglia01" Style="{StaticResource CanvasCard}" Canvas.Left="150">
                <Border Name="BorderGriglia01" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Griglia01" Click="Griglia_Click" Style="{StaticResource ButtonCard}" />
        	</Canvas>
            <Canvas Name="CanvasGriglia02" Style="{StaticResource CanvasCard}" Canvas.Left="300">
                <Border Name="BorderGriglia02" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Griglia02" Click="Griglia_Click" Style="{StaticResource ButtonCard}" />
        	</Canvas>
            <Canvas Name="CanvasGriglia10" Style="{StaticResource CanvasCard}" Canvas.Top="150">
                <Border Name="BorderGriglia10" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Griglia10" Click="Griglia_Click" Style="{StaticResource ButtonCard}" />
        	</Canvas>
            <Canvas Name="CanvasGriglia11" Style="{StaticResource CanvasCard}" Canvas.Left="150" Canvas.Top="150">
                <Border Name="BorderGriglia11" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Griglia11" Click="Griglia_Click" Style="{StaticResource ButtonCard}" />
        	</Canvas>
            <Canvas Name="CanvasGriglia12" Style="{StaticResource CanvasCard}" Canvas.Left="300" Canvas.Top="150">
                <Border Name="BorderGriglia12" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Griglia12" Click="Griglia_Click" Style="{StaticResource ButtonCard}" />
        	</Canvas>
            <Canvas Name="CanvasGriglia20" Style="{StaticResource CanvasCard}" Canvas.Top="300">
                <Border Name="BorderGriglia20" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Griglia20" Click="Griglia_Click" Style="{StaticResource ButtonCard}" />
        	</Canvas>
            <Canvas Name="CanvasGriglia21" Style="{StaticResource CanvasCard}" Canvas.Left="150" Canvas.Top="300">
                <Border Name="BorderGriglia21" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Griglia21" Click="Griglia_Click" Style="{StaticResource ButtonCard}"  />
        	</Canvas>
            <Canvas Name="CanvasGriglia22" Style="{StaticResource CanvasCard}" Canvas.Left="300" Canvas.Top="300">
                <Border Name="BorderGriglia22" BorderBrush="Black" Style="{StaticResource BorderCard}" />
                <Button x:Name="Griglia22" Click="Griglia_Click" Style="{StaticResource ButtonCard}" />
        	</Canvas>
        </Canvas>
        <TextBlock Height="30" HorizontalAlignment="Left" Margin="678,52,0,0" Name="textBlockTimer" Text="60" VerticalAlignment="Top" Width="122" TextAlignment="Center" Foreground="#FFCDC6A7"/>
        <TextBlock Height="33" HorizontalAlignment="Left" Margin="678,22,0,425" Text="Time left:" Width="114" TextAlignment="Center" Foreground="#FFCDC6A7" />
        <TextBlock Height="33" HorizontalAlignment="Left" Margin="678,395,0,52" Text="Player 2:" Width="114" TextAlignment="Center" Foreground="#FFCDC6A7" />
        <TextBlock Height="30" HorizontalAlignment="Left" Margin="678,0,0,22" x:Name="textBlockPlayer2Name" Text="Name" VerticalAlignment="Bottom" Width="122" TextAlignment="Center" Foreground="#FFCDC6A7"/>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
